package infostroy.bookagolf.common.helpers;

import infostroy.bookagolf.common.Constants.Colors;

import javax.swing.*;
import java.awt.image.BufferedImage;

/**
 * Created by valer_000 on 2/24/14.
 */
public class ComponentsHelper {

    public static JButton createButtonWithImg(BufferedImage image) {
        JButton button = new JButton(new ImageIcon(image));
        button.setContentAreaFilled(false);
        button.setBorderPainted(false);
        return button;
    }

    public static JPanel createBlackScrollCorner() {
        JPanel panel = new JPanel();
        panel.setBackground(Colors.TABLE_HEADER_BACKGROUND_COLOR);
        return panel;
    }
}
